package com.algo.color;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * 自定义SqlSessionFactory 工厂 bean
 */
@Component
public class MySqlSessionFactoryBean implements FactoryBean<MySqlSession> {

    @Override
    public MySqlSession getObject() throws Exception {
        return new MySqlSession();
    }

    @Override
    public Class<?> getObjectType() {
        return MySqlSession.class;
    }
}
